import store from '@/store'
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "labelWidth": 140,
  searchMenuSpan: store.getters.belongToLine?24:6,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      "display": false,
      "hide": true
    },	  {
      "type": "select",
      "label": "线路名称",
      "prop": "lineCode",
      "display": store.getters.belongToLine,
      "cascaderItem": ["stationCode"],
      "dicUrl": "support/swparamline/dict",
      "props": {
        "label": "name",
        "value": "code"
      },
      "search": store.getters.belongToLine,
      "hide": !store.getters.belongToLine,
    },	  {
      "type": "select",
      "label": "车站名称",
      "prop": "stationCode",
      "display": store.getters.belongToLine,
      "dicFlag": false,
      "dicUrl": "support/swparamstation/dict/{{key}}",
      "props": {
        "label": "name",
        "value": "code"
      },
      "search": store.getters.belongToLine,
      "hide": !store.getters.belongToLine,
    },	  {
      "type": "input",
      "label": "互联网售票机编号",
      "prop": "equipmentCode",
      "search": true,
      "searchLabelWidth": 130,
      "rules": [{ required: true, message: "请输入互联网售票机编号"}]
    },	  {
      "type": "select",
      "label": "状态",
      "prop": "status",
      "search": true,
      "dicData": [
        {
          "label": "启用",
          "value": "1"
        },
        {
          "label": "未启用",
          "value": "0"
        }
      ],
      "rules": [{ required: true, message: "请选择状态"}]
    },	  {
      "type": "input",
      "label": "部门ID",
      "prop": "deptId",
      "display": false,
      "hide": true
    },	  {
      "type": "input",
      "label": "创建人ID",
      "prop": "creatorId",
      "display": false,
      "hide": true
    },	  {
      "type": "input",
      "label": "创建人名称",
      "prop": "creatorName",
      "display": false,
      "hide": true
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      "display": false,
      "hide": true
    } ]
}
